//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Harry Connick Jr.','Boston Symphony Hall','Boston, MA','Friday','5/10/2024','7:30 PM','6352601','Harry-Connick-Jr--5-10-2024'],['Harry Connick Jr.','Boston Symphony Hall','Boston, MA','Saturday','5/11/2024','7:30 PM','6401318','Harry-Connick-Jr--5-11-2024'],['Harry Connick Jr.','Hollywood Bowl','Los Angeles, CA','Tuesday','7/2/2024','7:30 PM','6091432','Harry-Connick-Jr--7-2-2024'],['July Fourth Fireworks Spectacular with Harry Connick Jr.','Hollywood Bowl','Los Angeles, CA','Wednesday','7/3/2024','7:30 PM','6117374','July-Fourth-Fireworks-Spectacular-with-Harry-Connick-Jr--7-3-2024'],['Harry Connick Jr.','Hollywood Bowl','Los Angeles, CA','Thursday','7/4/2024','7:30 PM','6088469','Harry-Connick-Jr--7-4-2024'],['Harry Connick Jr.','The Rady Shell at Jacobs Park','San Diego, CA','Saturday','7/6/2024','7:30 PM','6305404','Harry-Connick-Jr--7-6-2024'],['Harry Connick Jr.','Mountain Winery','Saratoga, CA','Tuesday','7/9/2024','8:00 PM','6348456','Harry-Connick-Jr--7-9-2024'],['Harry Connick Jr.','Mountain Winery','Saratoga, CA','Wednesday','7/10/2024','8:00 PM','6348458','Harry-Connick-Jr--7-10-2024'],['Harry Connick Jr.','Chateau Ste Michelle Winery','Woodinville, WA','Friday','7/12/2024','7:00 PM','6328188','Harry-Connick-Jr--7-12-2024'],['Harry Connick Jr.','Chateau Ste Michelle Winery','Woodinville, WA','Saturday','7/13/2024','7:00 PM','6328189','Harry-Connick-Jr--7-13-2024']],'Harry Connick Jr.','http://www.ticketnetwork.com/ticket/Harry-Connick-Jr.-events.aspx');